<script src="ioriframework/boot/job/createJob.js"></script>
<script src="ioriframework/boot/job/commonJob.js"></script>
<div class="modal-header">
   <button type="button" class="close" data-dismiss="modal" 
      aria-hidden="true">×
   </button>
   <h4 class="modal-title" ><span i18nKey="iori.job.label.addJob"></span></h4>
</div>
<div class="modal-body">
<div id="createJobMsg"></div>
<div class="form-horizontal ioriForm init modal-form" id="createJobForm" role="form">
   <div class="form-group">
      <label for="jobName" class="required" i18nKey="iori.job.label.jobName"></label>
         <input type="text" class="form-control" id="jobName" name="jobName" required maxlength="100" autocomplete="off">

   </div>
   <div class="form-group">
      <label for="jobType"  i18nKey="iori.job.label.jobType"></label>
         <select class="form-control" id="jobType" name="jobType">
	         <option value="REST">REST</option>
	     </select>
   </div>
   <div class="form-group">
      <label for="statefulFlag"  i18nKey="iori.job.label.stateful"></label>
      <div>
          <label class="radio-inline">
              <input type="radio" name="statefulFlag" id="statefulFlagY" value="Y" checked>顺序执行
          </label>
          <label class="radio-inline">
              <input type="radio" name="statefulFlag" id="statefulFlagN" value="N">并发执行
          </label>
      </div>


   </div>
   <div class="form-group">
      <label for="groupName" class=" required" i18nKey="iori.job.label.group"></label>

         <input type="text" class="form-control" id="groupName" name="groupName" required maxlength="100">

   </div>
   <div class="form-group">
      <label for="cron" class=" required" i18nKey="iori.job.label.cron">
      <button type="button" style="border: 0px;" title="click show cron help" class="btn btn-xs btn-default dropdown-toggle" id="cronHelpMenu" data-toggle="dropdown">
		<span class="glyphicon glyphicon-question-sign"></span></button>
		<ul class="dropdown-menu" role="menu" aria-labelledby="cronHelpMenu" id="cronHelp">
		<li role="presentation" class="dropdown-header">常用CRON配置</li>
		</ul>
      </label>

         <input type="text" class="form-control" id="cron" name="cron" required maxlength="100" list="cronList" autocomplete="off">
            <datalist id="cronList"></datalist>

   </div>
   <div class="form-group">
      <label for="jobContent" class=" required" i18nKey="iori.job.label.content"></label>

         <input type="url" class="form-control" id="jobContent" name="jobContent" required maxlength="1000" autocomplete="off">

   </div>
   </div>
</div>
</div>
<div class="modal-footer">
   <button type="button" class="btn btn-default waves-effect waves-light" data-dismiss="modal" i18nKey="iori.common.button.close"></button>
   <button type="button" class="btn btn-main waves-effect waves-light" onclick="Iori.Job.Create.submit();" i18nKey="iori.common.button.save"></button>
</div>
